<template>
  <div class="heade">
    <div class="top center">
      <div class="logo">LOGO</div>
      <div class="find">
        <input type="text" placeholder="请输入疾病名称" />
        <button class="finds">搜索</button>
      </div>
    </div>
    <div class="nav">
      <ul class="center">
        <li v-for="(item, index) in list" :key="index">
          <router-link to="/" class="link">{{ item.title }}</router-link>
        </li>
      </ul>
    </div>
    <div class="nextnav">
      <img src="../assets/img/zu.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: "header",
  data() {
    return {
      list: [
        { id: 1, title: "首页" },
        { id: 2, title: "药膳食疗" },
        { id: 3, title: "首页" },
        { id: 4, title: "首页" },
        { id: 5, title: "首页" },
        { id: 6, title: "首页" },
        { id: 1, title: "首页" },
        { id: 2, title: "首页" },
        { id: 3, title: "首页" },
        { id: 4, title: "首页" },
        { id: 5, title: "首页" },
      ],
    };
  },
  props: {
    msg: String,
  },
  methods: {
    
  },
};
$(function(){
    $('.logo').click(function(){
       $('.nextnav').toggle()
    });
});

</script>


<style scoped>
.center {
  width: 1583px;
  margin: 0 auto;
}
.heade {
  
  background: #f7f2e6;
}
.top {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
.logo {
  width: 138px;
  height: 38px;
  font-size: 50px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #000000;
}
.find input {
  width: 326px;
  height: 56px;
  border: 2px solid #9e290b;
  border-radius: 28px;
  font-size: 20px;
  font-family: Adobe Heiti Std;
  font-weight: normal;
  color: #666666;
  text-indent: 3rem;
  background: #f7f2e6;
}
.nav {
  background:#9b0000;
}
.nav ul {
  display: flex;
  justify-content: space-between;
  height: 66px;
}
.nav li {
  padding: 0 10px;
  height: 60px;
  line-height: 60px;
  padding: 2px 0;
  color: #fff;
}
.link {
  text-decoration: none;
  color: #fff;
}
.nav li:hover {
  border-bottom: 2px solid #fff;
}
/* //搜索 */
.find {
  position: relative;
}
.finds {
  width: 111px;
  height: 56px;
  font-size: 20px;
  font-family: Adobe Heiti Std;
  font-weight: normal;
  color: #ffffff;
  background: #a40000;
  border: 0;
  border-radius: 28px;
  position: absolute;
  right: 0;
  top: 2px;
}
.heade{position: relative;}
.nextnav {
  width: 1920px;
  height: 155px;
  opacity: 0.49;
  background: #000;
  position: absolute;top:70px;
  text-align: center;
}
.nextnav img{margin-top: 40px;width: 1553px;height: 37px;;}
</style>
